import { createI18n } from "vue-i18n"
import storage from '../utils/storage.js'
import tw from "./zh_tw"
import en from "./en"
import vie from "./vie"
import zh from "./zh"

const i18n = createI18n({
  locale: "vie", // 定义默认语言为中文
  legacy: false,
  globalInjection: true,
  messages: {
    vie,
    tw,
    en,
    zh,
  },
})

export default i18n
